﻿using LuceneApiServerLib;

namespace LuceneNetHelper
{
    public class Article
    {
        /// <summary>
        ///     id，产品id
        /// </summary>
        [Field(Index = Index.NOT_ANALYZED, Store = Store.YES)]
        public int Id { get; set; }
        #region Price
        /// <summary>
        /// 商城
        /// </summary>
        [Field(Index = Index.NOT_ANALYZED_NO_NORMS, Store = Store.YES)]
        public string ShopPrice { get; set; }
        /// <summary>
        /// 市场
        /// </summary>
        [Field(Index = Index.NOT_ANALYZED_NO_NORMS, Store = Store.YES)]
        public string MarketPrice { get; set; }
        /// <summary>
        /// 高级
        /// </summary>
        [Field(Index = Index.NOT_ANALYZED_NO_NORMS, Store = Store.YES)]
        public string Price1 { get; set; }
        /// <summary>
        /// 代理
        /// </summary>
        [Field(Index = Index.NOT_ANALYZED_NO_NORMS, Store = Store.YES)]
        public string Price2 { get; set; }
        /// <summary>
        /// vip
        /// </summary>

        [Field(Index = Index.NOT_ANALYZED_NO_NORMS, Store = Store.YES)]
        public string Price3 { get; set; }
        /// <summary>
        /// 全网最低
        /// </summary>
        [Field(Index = Index.NOT_ANALYZED_NO_NORMS, Store = Store.YES)]
        public string PriceLower { get; set; }
        #endregion
        /// <summary>
        /// 点击量
        /// </summary>
        [Field(Index = Index.NOT_ANALYZED_NO_NORMS, Store = Store.YES)]
        public int Click { get; set; }
        /// <summary>
        /// 销量
        /// </summary>
        [Field(Index = Index.NOT_ANALYZED_NO_NORMS, Store = Store.YES)]
        public int Sales { get; set; }
        /// <summary>
        /// 7天退
        /// </summary>
        [Field(Index = Index.NOT_ANALYZED_NO_NORMS, Store = Store.YES)]
        public string Refund7 { get; set; }
        /// <summary>
        /// 上架时间 Ticks
        /// </summary>
        [Field(Index = Index.NOT_ANALYZED_NO_NORMS, Store = Store.YES)]
        public long UpTime { get; set; }
        /// <summary>
        ///     BrandName，品牌
        /// </summary>
        [Field(Index = Index.NOT_ANALYZED, Store = Store.YES)]
        public string BrandName { get; set; }

        /// <summary>
        ///     属性Property
        /// </summary>
        [Field(Index = Index.NOT_ANALYZED_NO_NORMS, Store = Store.YES)]
        public string Property { get; set; }

        /// <summary>
        ///     分类
        /// </summary>
        [Field(Index = Index.ANALYZED_NO_NORMS, Store = Store.YES)]
        public string Class { get; set; }

        /// <summary>
        ///     标题
        /// </summary>
        [Field(Index = Index.ANALYZED, Store = Store.YES)]
        public string Title { get; set; }

        /// <summary>
        ///     关键词
        /// </summary>
        [Field(Index = Index.ANALYZED, Store = Store.YES)]
        public string KeyWords { get; set; }
    }
}